package rad.framework.mda.generator.template.main.webapp.webinf;

public class FacesConfig
{
  protected static String nl;
  public static synchronized FacesConfig create(String lineSeparator)
  {
    nl = lineSeparator;
    FacesConfig result = new FacesConfig();
    nl = null;
    return result;
  }

  public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
  protected final String TEXT_1 = "<?xml version=\"1.0\"?>" + NL + "<faces-config version=\"1.2\" " + NL + "\txmlns=\"http://java.sun.com/xml/ns/javaee\"" + NL + "\txmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" " + NL + "\txsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd\">" + NL + "" + NL + "\t<managed-bean>" + NL + "\t\t<managed-bean-name>a4jSkin</managed-bean-name>" + NL + "\t\t<managed-bean-class>org.richfaces.skin.SkinBean</managed-bean-class>" + NL + "\t\t<managed-bean-scope>application</managed-bean-scope>" + NL + "\t</managed-bean>" + NL + "" + NL + "\t<application>" + NL + "\t\t<locale-config>" + NL + "\t\t\t<default-locale>en</default-locale>" + NL + "\t\t\t<supported-locale>en</supported-locale>" + NL + "\t\t</locale-config>" + NL + "\t\t<view-handler>com.sun.facelets.FaceletViewHandler</view-handler>" + NL + "\t</application>" + NL + "" + NL + "\t<!-- uncomment for debugging" + NL + "\t<lifecycle>" + NL + "\t\t<phase-listener>rad.framework.trace.JamonPhaseListener</phase-listener>" + NL + "\t\t<phase-listener>rad.framework.jsf.PhaseLogger</phase-listener>" + NL + "\t</lifecycle>" + NL + "\t-->" + NL + "" + NL + "\t" + NL + "\t<!-- For Portlet App" + NL + "\t<managed-bean>" + NL + "\t\t<managed-bean-name>ajaxContext</managed-bean-name>" + NL + "\t\t<managed-bean-class>" + NL + "\t\t\torg.ajax4jsf.portlet.PortletAjaxContext" + NL + "\t\t</managed-bean-class>" + NL + "\t\t<managed-bean-scope>request</managed-bean-scope>" + NL + "\t</managed-bean>" + NL + "\t<managed-bean>" + NL + "\t\t<managed-bean-name>a4jSkin</managed-bean-name>" + NL + "\t\t<managed-bean-class>" + NL + "\t\t\torg.ajax4jsf.framework.skin.SkinBean" + NL + "\t\t</managed-bean-class>" + NL + "\t\t<managed-bean-scope>application</managed-bean-scope>" + NL + "\t</managed-bean>" + NL + "" + NL + "\t<application>" + NL + "\t\t<view-handler>" + NL + "\t\t\torg.ajax4jsf.portlet.application.PortletViewHandler" + NL + "\t\t</view-handler>" + NL + "\t</application>" + NL + "" + NL + "\t<lifecycle>" + NL + "\t\t<phase-listener>" + NL + "\t\t\torg.jboss.seam.jsf.TransactionalSeamPortletPhaseListener" + NL + "\t\t</phase-listener>" + NL + "\t</lifecycle>" + NL + "" + NL + "\t<render-kit>" + NL + "\t\t<renderer>" + NL + "\t\t\t<description>override the viewroot</description>" + NL + "\t\t\t<component-family>javax.faces.ViewRoot</component-family>" + NL + "\t\t\t<renderer-type>javax.faces.ViewRoot</renderer-type>" + NL + "\t\t\t<renderer-class>" + NL + "\t\t\t\torg.ajax4jsf.portlet.renderkit.portlet.PortletAjaxViewRootRenderer" + NL + "\t\t\t</renderer-class>" + NL + "\t\t</renderer>" + NL + "\t</render-kit>" + NL + "\t-->" + NL + "</faces-config>";

  public String generate(Object argument)
  {
    final StringBuffer stringBuffer = new StringBuffer();
    

    stringBuffer.append(TEXT_1);
    return stringBuffer.toString();
  }
}
